﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 徐州学校收货单新增产品字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "ClientCode",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ClientName",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "CompanyCode",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "CompanyName",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MarketOrderSn",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ModelSpec",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProductCode",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProductName",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProductionOrderSn",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "PurchaseOrderSn",
                table: "TShippingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "RetreatTime",
                table: "TShippingOrderDetails",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "ShipmentsTime",
                table: "TShippingOrderDetails",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "DeliveryTime",
                table: "TShippingGoodsDetails",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Iineitem",
                table: "TShippingGoodsDetails",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MarketIineitem",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "MarketOrderSn",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ModelSpec",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "NeedNum",
                table: "TShippingGoodsDetails",
                type: "decimal(18,2)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "PurchaseIineitem",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "RetreatNum",
                table: "TShippingGoodsDetails",
                type: "decimal(18,2)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "RetreatUnitCode",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "RetreatUnitName",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "ShipmentsNum",
                table: "TShippingGoodsDetails",
                type: "decimal(18,2)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "UnitCode",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "UnitName",
                table: "TShippingGoodsDetails",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProductCode",
                table: "TReceivingBills",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "ProductName",
                table: "TReceivingBills",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ClientCode",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "ClientName",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "CompanyCode",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "CompanyName",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "MarketOrderSn",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "ModelSpec",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "ProductCode",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "ProductName",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "ProductionOrderSn",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "PurchaseOrderSn",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "RetreatTime",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "ShipmentsTime",
                table: "TShippingOrderDetails");

            migrationBuilder.DropColumn(
                name: "DeliveryTime",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "Iineitem",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "MarketIineitem",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "MarketOrderSn",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "ModelSpec",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "NeedNum",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "PurchaseIineitem",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "RetreatNum",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "RetreatUnitCode",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "RetreatUnitName",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "ShipmentsNum",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "UnitCode",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "UnitName",
                table: "TShippingGoodsDetails");

            migrationBuilder.DropColumn(
                name: "ProductCode",
                table: "TReceivingBills");

            migrationBuilder.DropColumn(
                name: "ProductName",
                table: "TReceivingBills");
        }
    }
}
